<!--
 * @FilePath     : /study_code/css/border-image-source.html
 * @Description  : border-image-source 指定图像边框的 图片
 * @Date         : 2025-04-28 09:03:28
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-28 09:34:46
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="./style/border-image.css" />
    <style>
      .box {
        /* 边框 */
        border: 30px solid red;
        border-image-slice: 30;
        border-image-width: 1;
        border-image-outset: 0;
        border-image-repeat: stretch;
      }

      img {
        padding: 20px;
      }

      .box1 {
        border-image-source: url(./images/border.png);
      }

      .box2 {
        border-image-source: url(./images/iptop.png);
      }

      .box3 {
        border-image-source: url(./images/nav_tag_new.svg);
      }

      .box4 {
        border-image-source: none;
      }
    </style>
  </head>
  <body>
    <img src="./images/border.png" />
    <div class="box box1">内容</div>
    <hr />
    <img src="./images/iptop.png" />
    <div class="box box2">内容</div>
    <hr />
    <img src="./images/nav_tag_new.svg" />
    <div class="box box3">内容</div>
    <hr />
    <div class="box box4">内容</div>
  </body>
</html>
